package com.atguigu.day05;

public class Test_1 {
    public static void main(String[] args) {
        int[][] yangHui = new int[10][10];
        System.out.println(1);
        for (int i = 1; i < 10; i++) {
            yangHui[i][0] = 1;
            yangHui[i][i] = 1;
            System.out.print(yangHui[i][0] + " ");
            for (int j = 1; j < i; j++) {
                yangHui[i][j] = yangHui[i - 1][j - 1] + yangHui[i - 1][j];
                System.out.print(yangHui[i][j] + " ");
            }
            System.out.println(yangHui[i][i]);
        }
    }
}
